import 'package:flutter_fronter_service/page/GoodsDeatilPage.dart';
import 'package:get/get.dart';

import '../middleWare/AddressMiddleware.dart';
import '../page/ConfirmOrderPage.dart';
import '../page/DeliveryAddressPage.dart';
import '../page/EditAddress.dart';
import '../page/LoginPage.dart';
import '../page/OrderDetailPage.dart';
import '../page/OrderListPage.dart';
import '../page/tap.dart';


//import 'package:flutter/cupertino.dart';引入ios路由跳转风格：左右滑动
//import 'package:flutter/material.dart';引入ios路由跳转风格： 跳出来

class AppRoutes {
  static final routes = [
    // 路由配置
    GetPage(name: "/", page: () => const Taps(),),
    GetPage(name: "/goodsDetail", page: () => const GoodsDetailPage(), transition: Transition.downToUp),
    GetPage(name: "/login", page: () => LoginPage(), transition: Transition.downToUp),
    GetPage(name: "/deliveryAddress", page: () => DeliveryAddressPage(), transition: Transition.downToUp, middlewares: [AddressMiddleware()]),
    GetPage(name: "/saveAddress", page: () => AddressDetail(isEdit: false), transition: Transition.downToUp),
    GetPage(name: "/editAddress", page: () => AddressDetail(isEdit: true), transition: Transition.downToUp),
    GetPage(name: "/confirmOrder", page: () => ConfirmOrderPage(), transition: Transition.downToUp),
    GetPage(name: "/orderDetail", page: () => OrderDetailsPage(), transition: Transition.downToUp),
    GetPage(name: "/orderList", page: () => OrderListPage()),
  ];
}
